package com.yy.daili;

public class TestDaili {
    public static void main(String[] args) {
        //张三要上缴学费
        Person 张三=new Student("张三");

        //实例化代理对象
        Person monitor=new StudentProxy(张三);
        //上班缴费
        monitor.giveMoney();
    }
}
